package com.example.qt.ptplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qt.ptplatform.entity.Seed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SeedMapper extends BaseMapper<Seed> {
    //查询活跃的种子
    @Select("SELECT * FROM seeds WHERE end_time IS NULL")
    List<Seed> getAllActiveSeed();
}
